<div class="nav_bg">
<div class="nav mid"> <span class="nav_left link_red">欢迎光临百觅美丽！&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 <?php if(!isset(Yii::app()->session['username'])){?>

<?php echo CHtml::link('会员登录', array('hymember/login')); ?>
| 
<?php echo CHtml::link('免费注册', array('hymember/reg')); ?>

<?php } ?>
</span>
  <div class="nav_right">
  <?php if(Yii::app()->session['username']){?>
 欢迎回来 ,<?php 
  echo  Yii::app()->session['username'];
  ?>，
  
  <?php echo CHtml::link('会员中心', array('hymember/member')); ?>  
  <?php echo CHtml::link('安全退出', array('hymember/quit')); ?>
  
  <?php }?>
  <?php echo CHtml::link('我的百觅', array('hymember/member')); ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#">推荐觅友</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#">帮助中心</a></div>
</div>
</div>